package one.stand.controller;

/**
 * @author luoyang
 * @date 2020/6/15 11:02
 */

import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import one.stand.aop.ApiController;
import one.stand.model.ResultModel;
import one.stand.request.SwitchVideoRequest;
import one.stand.request.UserCouponRequest;
import org.springframework.web.bind.annotation.*;

import javax.validation.Valid;
@RestController
@RequestMapping("userApi/video")
@Api(description = "短视频开关",tags="短视频开关")
public class VideoSwtichController extends BaseController {



    @ApiOperation(value = "短视频开关")
    @ApiController(isLogin = true,paramClass = SwitchVideoRequest.class)
    @PostMapping("switchVideo")
    public ResultModel switchVideo(@RequestAttribute SwitchVideoRequest request){
         return userFegin.switchVideo(request);
    }
}
